﻿<Window x:Class="RichTextEditor.EditorWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ctl="clr-namespace:RichTextEditor.Controls"
        Title="Editor" Height="500" Width="750" Loaded="Window_Loaded" Closing="Window_Closing" KeyDown="Window_KeyDown">
    <Grid FlowDirection="RightToLeft">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <ctl:Editor Grid.Row="0" x:Name="Editor" />
        <StackPanel Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Orientation="Horizontal">
            <Button Content="Cancel" Height="23" Name="cmdCancel" Width="75" IsCancel="True" Margin="10,0,5,0" Click="cmdCancel_Click" />
            <Button Content="Save" Height="23" Name="cmdSave" Width="75" Margin="5,0,0,0" IsDefault="True" Click="cmdSave_Click" />
        </StackPanel>
    </Grid>
</Window>
